import request from '@/utils/request'

/**
 * @description
 * @author Golduck
 * @date 06/05/2025
 * @export
 * @param {{ suiteCode: string; suiteName: string; suiteDesc: string }} params
 * @return {*}  {ResponseResult<boolean>}
 */
export async function addSuite(params) {
  return request.post('/v1/suite/add', params);
}

export async function deleteSuite(id) {
  return request.delete(`/v1/suite/delete/${id}`);
}

/**
 * @description
 * @author Golduck
 * @date 06/05/2025
 * @export
 * @param {{ id: string; suiteCode: string; suiteName: string; suiteDesc: string }} params
 * @return {*}  {ResponseResult<boolean>}
 */
export async function updateSuite(params) {
  return request.put('/v1/suite/update', params);
}

export async function suitePage(params) {
  return request.post('/v1/suite/page', params);
}

export async function suiteList() {
  return request.get('/v1/suite/list');
}
